<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: 高金磊
  Date: 2021/3/30
  Time: 13:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
  <title>登录页面 - 后台管理系统模板</title>
  <link rel="icon" href="<%=basePath%>favicon.ico" type="image/ico">
  <meta name="keywords" content="后台模板,后台管理系统,HTML模板">
  <meta name="description" content="基于Bootstrap的后台管理系统模板">
  <link href="<%=basePath%>css/bootstrap.min.css" rel="stylesheet">
  <link href="<%=basePath%>css/fonts.css" rel="stylesheet">
  <link href="<%=basePath%>css/style.css" rel="stylesheet">
  <style>
    .loginpage {
      position: relative;
    }
    .login {
      display: flex !important;
      min-height: 100vh;
      align-items: center !important;
      justify-content: center !important;
    }
    .login-center {
      background: #fff;
      min-width: 38rem;
      padding: 2em 3em;
      border-radius: 10px;
      margin: 2em 0;
    }
    .login-header {
      margin-bottom: 2rem !important;
    }
    .login-center .has-feedback.feedback-left .form-control {
      padding-left: 38px;
      padding-right: 12px;
    }
    .login-center .has-feedback.feedback-left .form-control-feedback {
      left: 0;
      right: auto;
      width: 38px;
      height: 38px;
      line-height: 38px;
      z-index: 4;
      color: #dcdcdc;
    }
    .login-center .has-feedback.feedback-left.row .form-control-feedback {
      left: 15px;
    }
  </style>
</head>
<body class="login">

<%--<form action="Login.action">--%>
<%--&lt;%&ndash;<input type="hidden" name="key" value="0">&ndash;%&gt;--%>
<%--<span>用户名:</span>--%>
<%--<span><input name="username" type="text" value="<%=request.getParameter("username")==null?"":request.getParameter("username")%>" ></span><br>--%>
<%--<span>密码:</span>--%>
<%--<span><input name="password" type="text" value="<%=request.getParameter("password")==null?"":request.getParameter("password")%>" ></span><br>--%>
<%--<span style="color: red;font-size: 13px"><s:actionerror/></span><br>--%>
<%--<span><input type="submit" value="登录"></span>--%>
<%--</form>--%>

<div class="loginpage">
  <div class="login">
    <div class="login-center">
      <div class="login-header text-center">
        <a href=""> <img src="<%=basePath%>images/admin_logo.png"> </a>
      </div>
      <s:form action="ManagerLogin" method="get">
        <div class="form-group has-feedback feedback-left">
          <input type="text" placeholder="请输入您的用户名" class="form-control" name="username"  value="<%=request.getParameter("username")==null?"":request.getParameter("username")%>"  id="username" />
          <span class="ftsucai-65 form-control-feedback" aria-hidden="true"></span>
        </div>
        <div class="form-group has-feedback feedback-left">
          <input type="password" placeholder="请输入密码" class="form-control" id="password" name="password" type="text" value="<%=request.getParameter("password")==null?"":request.getParameter("password")%>"  />
          <span class="ftsucai-216 form-control-feedback" aria-hidden="true"></span>
        </div>
        <%--<div class="form-group has-feedback feedback-left row">--%>
          <%--<div class="col-xs-7">--%>
            <%--<input type="text" name="captcha" class="form-control" placeholder="验证码">--%>
            <%--<span class="ftsucai-mao form-control-feedback" aria-hidden="true"></span>--%>
          <%--</div>--%>
          <%--<div class="col-xs-5">--%>
            <%--<img src="<%=basePath%>images/yzm.png" class="pull-right" id="captcha" style="cursor: pointer;" onclick="this.src=this.src+'?d='+Math.random();" title="点击刷新" alt="captcha">--%>
          <%--</div>--%>
        <%--</div>--%>
        <s:actionerror/>
        <div class="form-group">
          <button class="btn btn-block btn-primary" type="submit">立即登录</button>
        </div>
      </s:form>
      <hr>
      <%--<footer class="col-sm-12 text-center">--%>
        <%--<p class="m-b-0">Copyright © 2021  All right reserved</p>--%>
      <%--</footer>--%>
    </div>
  </div>
</div>
<script type="text/javascript" src="<%=basePath%>/js/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath%>/js/bootstrap.js"></script>
</body>
</html>
